package com.glorystone.ins.service;

import com.glorystone.ins.common.common.PageVo;
import com.glorystone.ins.domain.SysUser;
import com.glorystone.ins.interceptor.PageList;

import java.util.List;
import java.util.Set;

public interface ISysUserService {


    boolean addUser(SysUser user);

    boolean delUser(Long userId);

    boolean updateUser(SysUser user);

    SysUser getUserById(Long userId);

    SysUser getUserByUserName(String jobNumber);

    SysUser getUserByUserNameAndPwd(String userName, String pwd);

    boolean modifyPassword(SysUser user, SysUser u);

    PageList<SysUser> findUserList(PageVo vo);

    Set<String> getRoleNameSetByUsername(String username);

    Set<String> getAuthSetByUsername(String username);
    
    boolean updateStatus(SysUser sysuser);
    
    List<String> getIdsByOfficeId(Long officeId);
    
    SysUser onlyJobNumber(String jobNumber);
    
    PageList<SysUser> selectUser(PageVo vo);
    
    void insertExternalUser(SysUser user);
    
    boolean resetPassword(SysUser user,SysUser u);
    
    List<SysUser> selectByOfficeId(Long officeId);
    
    SysUser selectById(Long tid);
    
    void updateInsertExternalUser(SysUser user);
    
    boolean editLand(Long tid);
}
